/*Find average price in array*/

import java.util.Scanner;
public class Prices
{
   /**
      A method to determine and return the average price
   */
   public static double averagePrice(double[] priceData)
   {

      // your work here
      double total=0;
      for(double i:priceData)
      {
      total=total+i;
      }
      double aver=total/priceData.length;
      return aver;

   }
}